// import Cookies from 'js-cookie'

// 使用localStorage存储token，而不使用cookie

const TokenKey = "vue_admin_template_token";

export function getToken() {
  // return Cookies.get(TokenKey)
  return localStorage.getItem(TokenKey);
}

export function setToken(token) {
  // console.log(111, token);
  // return Cookies.set(TokenKey, token)
  localStorage.setItem(TokenKey, token);
}
console.log(localStorage);

export function removeToken() {
  // return Cookies.remove(TokenKey)
  localStorage.removeItem(TokenKey);
}
